package com.msameer.gwttutor.client;

import com.google.gwt.event.shared.EventBus;
import com.google.gwt.event.shared.SimpleEventBus;
import com.google.gwt.place.shared.PlaceController;
import com.google.gwt.user.client.ui.HasWidgets;

public class ClientFactoryImpl implements ClientFactory {

    private final EventBus eventBus = new SimpleEventBus();
    private final PlaceController placeController = new PlaceController(eventBus);
    private final CustomerView customerView = new CustomerViewImpl();
    private final CustomersView customersView = new CustomersViewImpl();
    private final HomeView homeView = new HomeViewImpl();

    @Override
	public EventBus getEventBus() {
		return eventBus;
	}

	@Override
	public PlaceController getPlaceController() {
		return placeController;
	}

	@Override
	public CustomerView getCustomerView() {
		return customerView;
	}

	@Override
	public void run(HasWidgets rootPanel) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public HomeView getHomeView() {
		return homeView;
	}

	@Override
	public CustomersView getCustomersView() {
		// TODO Auto-generated method stub
		return customersView;
	}

}
